package com.lingnan.service;

import com.lingnan.entity.po.ChatSession;
import com.lingnan.entity.vo.ChatSessionVO;


import java.util.List;

public interface ChatSessionService {
    List<ChatSession> getUserSessions(Long userId, Integer userType);
    void updateLastMessage(Long sessionId, String lastMsg);
    void incrementUnreadCount(Long sessionId, Long receiverId,String lastMsg);
    void resetUnreadCount(Long sessionId, Long userId);
    List<ChatSessionVO> getUserSessionsVO(Long userId, Integer userType);
    int getSessionUnreadCount(Long sessionId, Long userId);
    ChatSession getSessionById(Long sessionId);
    Long createSession(Long seekerId, Long hrId);
    ChatSessionVO createOrGetSession(Long userId, Integer userType, Long targetUserId, Integer targetUserType);
}